package com.app.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.app.Const;
import com.pioneer.app.dev.osuser.user.Userlist;

public class UserUtil {

	public static Integer getUserId(HttpServletRequest request){
		HttpSession session=request.getSession();
		Userlist user =(Userlist)session.getAttribute(Const.SESSION_USER_OBJECT);
		if(null!=user)
			return user.getId();
		return null;
	}
}
